package com.ruoyi.order.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单管理对象 purchase_order
 * 
 * @author yx
 * @date 2024-12-19
 */
public class PurchaseOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单id */
    private Integer orderId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNumber;

    /** 厂家 */
    @Excel(name = "厂家")
    private String orderCorporation;

    /** 商品类别 */
    @Excel(name = "商品类别")
    private String orderCategory;

    /** 采购商品名 */
    @Excel(name = "采购商品名")
    private String orderGoods;

    /** 采购数量 */
    @Excel(name = "采购数量")
    private String orderNum;

    /** 单位 */
    @Excel(name = "单位")
    private String orderUnit;

    /** 批发单价 */
    @Excel(name = "批发单价")
    private String orderPrice;

    /** 0（未开始）1（开始）2（完成） */
    @Excel(name = "0", readConverterExp = "未=开始")
    private Long orderState;

    /** 订单日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderDate;

    public void setOrderId(Integer orderId) 
    {
        this.orderId = orderId;
    }

    public Integer getOrderId() 
    {
        return orderId;
    }
    public void setOrderNumber(String orderNumber) 
    {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber() 
    {
        return orderNumber;
    }
    public void setOrderCorporation(String orderCorporation) 
    {
        this.orderCorporation = orderCorporation;
    }

    public String getOrderCorporation() 
    {
        return orderCorporation;
    }
    public void setOrderCategory(String orderCategory) 
    {
        this.orderCategory = orderCategory;
    }

    public String getOrderCategory() 
    {
        return orderCategory;
    }
    public void setOrderGoods(String orderGoods) 
    {
        this.orderGoods = orderGoods;
    }

    public String getOrderGoods() 
    {
        return orderGoods;
    }
    public void setOrderNum(String orderNum) 
    {
        this.orderNum = orderNum;
    }

    public String getOrderNum() 
    {
        return orderNum;
    }
    public void setOrderUnit(String orderUnit) 
    {
        this.orderUnit = orderUnit;
    }

    public String getOrderUnit() 
    {
        return orderUnit;
    }
    public void setOrderPrice(String orderPrice) 
    {
        this.orderPrice = orderPrice;
    }

    public String getOrderPrice() 
    {
        return orderPrice;
    }
    public void setOrderState(Long orderState) 
    {
        this.orderState = orderState;
    }

    public Long getOrderState() 
    {
        return orderState;
    }
    public void setOrderDate(Date orderDate) 
    {
        this.orderDate = orderDate;
    }

    public Date getOrderDate() 
    {
        return orderDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("orderNumber", getOrderNumber())
            .append("orderCorporation", getOrderCorporation())
            .append("orderCategory", getOrderCategory())
            .append("orderGoods", getOrderGoods())
            .append("orderNum", getOrderNum())
            .append("orderUnit", getOrderUnit())
            .append("orderPrice", getOrderPrice())
            .append("orderState", getOrderState())
            .append("orderDate", getOrderDate())
            .toString();
    }
}
